package cn.t.modules.scheduler.common.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author 陶敏麒
 * @date 2024/3/6 21:51
 */
public class TimeUtil {

    private TimeUtil() {
        // private
    }

    private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS");


    public static String currentTime() {
        return DATE_TIME_FORMATTER.format(LocalDateTime.now());
    }
}
